import { request } from "@/utils/request002";

// 新增订单
export const addOrder = (data: any) => {
  return request({
    url: '/teaching/goodsOrder/addOrder',
    method: 'POST',
    data
  })
}

// 分页
export const queryOrderList = (params: any) => {
  return request({
    url: '/teaching/goodsOrder/page',
    method: 'GET',
    params
  })
}

// 申请删除
export const applyDelete = (data: any) => {
  return request({
    url: '/teaching/goodsOrder/applyDelete',
    method: 'POST',
    data
  })
}

// 申请退款
export const applyRefund = (data: any) => {
  return request({
    url: '/teaching/goodsOrder/applyRefund',
    method: 'POST',
    data
  })
}

// 已经退款
export const refunded = (data: any) => {
  return request({
    url: '/teaching/goodsOrder/refund',
    method: 'POST',
    data
  })
}